import QtQuick 2.0
import Qt3D 1.0
import Qt3D.Shapes 1.0

Item3D {
    id: _root
    scale: 2.5
    width: 2
    property color color: Qt.rgba(1, 1, 1, 0.8)

    property variant points:[
        0,1,0
        ,0.258819045102521,0.965925826289068,0
        ,0.5,0.866025403784439,0
        ,0.707106781186548,0.707106781186548,0
        ,0.866025403784439,0.5,0
        ,0.965925826289068,0.258819045102521,0
        ,1,0,0
        ,0.965925826289068,-0.258819045102521,0
        ,0.866025403784439,-0.5,0
        ,0.707106781186548,-0.707106781186548,0
        ,0.5,-0.866025403784439,0
        ,0.258819045102521,-0.965925826289068,0
        ,0,-1,0
        ,-0.25881904510252,-0.965925826289068,0
        ,-0.5,-0.866025403784439,0
        ,-0.707106781186548,-0.707106781186548,0
        ,-0.866025403784438,-0.5,0
        ,-0.965925826289068,-0.258819045102521,0
        ,-1,0,0
        ,-0.965925826289068,0.258819045102521,0
        ,-0.866025403784439,0.5,0
        ,-0.707106781186548,0.707106781186547,0
        ,-0.5,0.866025403784438,0
        ,-0.258819045102521,0.965925826289068,0
        ,0,1,0
        ,0.25881904510252,0.965925826289068,0
        ,0.499999999999999,0.866025403784439,0
    ]


    Line {
        z: -0.001
        vertices: _root.points
        width: _root.width
        effect: Effect {
            blending: true
            color: _root.color
        }
    }
    Line {
        z: 0.001
        vertices: points
        width: _root.width
        effect: Effect {
            blending: true
            color: _root.color
            material: Material{
                emittedLight: Qt.rgba(1, 1, 1, 1)
                shininess: 128
//                specularColor: Qt.rgba(1, 1, 1, 1)
            }
        }
        transform: [
            Rotation3D{
                angle: 180
                axis: Qt.vector3d(0, 1, 0)
            }

        ]
    }

}
